#pragma once

#include <functional>
#include <thread>

class Thread
{
	using ThreadHandler = std::function<void()>;
public:
	Thread(ThreadHandler func);

	~Thread();

	void start();

private:
	ThreadHandler _func;
};
